public class BankAccount {
    private String account;
    private double amount=0;
    private String passWord;

    public BankAccount(String account, String num,double amount) {
        this.account = account;
        this.amount = amount;
        this.passWord = num;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount += amount;
    }

}
